package com.ruoyi.SuveryInterface.Imp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.SuveryInterface.Imp.domain.SysIdentity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-11
 */
public interface SysIdentityMapper extends BaseMapper<SysIdentity> {

    void insertBatch(@Param("identityEntity") List<SysIdentity> identityEntity);

    void insertSysIdentity( SysIdentity sysIdentity);

    @Select("select id,order_id as orderId,report_id as reportId,msg,code,card_id as cardId,identity,crc,create_time as createTime,create_by as createBy from sys_identity where order_id = #{orderId}")
    List<SysIdentity> selectSysIdentityByOrderId(Long orderId);
}
